package com.bawei.wyg.mycommerce.databinding.rec;

import androidx.databinding.ObservableField;
import androidx.lifecycle.ViewModel;

import java.util.ArrayList;
import java.util.List;

public class AdapterViewModel extends ViewModel {
    public ObservableField<List<Object>> datas;
    public AdapterViewModel(){
        datas=new ObservableField<>();
        List<Object>list=new ArrayList<>();
        for (int i = 0; i <15 ; i++) {
            ItemEntity itemEntity = new ItemEntity();
            itemEntity.setName("name:猫晴"+i);
            list.add(itemEntity);
        }
        datas.set(list);
        datas.notifyChange();
    }

}
